export function setItem(name:string,data:any){
    localStorage.setItem(name,JSON.stringify(data))
}

export function getItem(name:string){
    return JSON.parse((localStorage.getItem(name) as string))
}

export function removeItem(name:string){
    localStorage.removeItem(name)
}